﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserProfile.aspx.cs" Inherits="OpenWaves.ActivityFeed.Web.Tests.UserProfile" MasterPageFile="Main.Master" %>
<%@ Import Namespace="OpenWaves.ActivityFeed" %>
<%@ Register TagPrefix="a" Namespace="OpenWaves.ActivityFeed.Web.Controls" Assembly="OpenWaves.ActivityFeed.Web" %>


 <asp:Content runat="server" ContentPlaceHolderID="head">
     <style type="text/css">

        ul {
            list-style: none;
            padding: 0;
            margin: 0 0 0 30px;
        }
        
        li {
            padding: 5px 0 10px 0;
        }

    </style>
 </asp:Content>


 
 <asp:Content ID="Content1" runat="server" ContentPlaceHolderID="cphBody">
 
     <asp:ListView ID="lstUsersToFollow" runat="server">
         <LayoutTemplate>
             <h3>List of users to follow/unfollow:</h3>
             <ul>
                 <asp:PlaceHolder runat="server" ID="itemPlaceholder"></asp:PlaceHolder>
             </ul>
         </LayoutTemplate>
         
         <ItemTemplate>
            <asp:PlaceHolder runat="server" Visible='<%# HttpContext.Current.User.Identity.Name != (string)Eval("Id") %>'>
            <li>
                <a:ActivityFeedSubscribeButton runat="server" Topic='<%# Topic.FromUserId(Eval("Id") as string) %>' 
                    FollowText='<%# "Follow " + Eval("DisplayName") + " (" + Eval("Id") + ")" %>' 
                    UnfollowText='<%# "Unfollow " + Eval("DisplayName") %>'></a:ActivityFeedSubscribeButton>             
            </li>
            </asp:PlaceHolder>
         </ItemTemplate>

     </asp:ListView>

 </asp:Content>


